package com.ruoyi.slope.video.radar.service.impl;

import java.util.Date;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.slope.video.radar.mapper.RadarMonitoringDeformationMapper;
import com.ruoyi.slope.video.radar.domain.RadarMonitoringDeformation;
import com.ruoyi.slope.video.radar.service.IRadarMonitoringDeformationService;

/**
 * 形变图Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-06
 */
@Service
public class RadarMonitoringDeformationServiceImpl implements IRadarMonitoringDeformationService 
{
    @Autowired
    private RadarMonitoringDeformationMapper radarMonitoringDeformationMapper;

    /**
     * 查询形变图
     * 
     * @param atTime 形变图主键
     * @return 形变图
     */
    @Override
    public RadarMonitoringDeformation selectRadarMonitoringDeformationByAtTime(Date atTime)
    {
        return radarMonitoringDeformationMapper.selectRadarMonitoringDeformationByAtTime(atTime);
    }

    /**
     * 查询形变图列表
     * 
     * @param radarMonitoringDeformation 形变图
     * @return 形变图
     */
    @Override
    public List<RadarMonitoringDeformation> selectRadarMonitoringDeformationList(RadarMonitoringDeformation radarMonitoringDeformation)
    {
        return radarMonitoringDeformationMapper.selectRadarMonitoringDeformationList(radarMonitoringDeformation);
    }

    /**
     * 新增形变图
     * 
     * @param radarMonitoringDeformation 形变图
     * @return 结果
     */
    @Override
    public int insertRadarMonitoringDeformation(RadarMonitoringDeformation radarMonitoringDeformation)
    {
        radarMonitoringDeformation.setCreateTime(DateUtils.getNowDate());
        return radarMonitoringDeformationMapper.insertRadarMonitoringDeformation(radarMonitoringDeformation);
    }

    /**
     * 修改形变图
     * 
     * @param radarMonitoringDeformation 形变图
     * @return 结果
     */
    @Override
    public int updateRadarMonitoringDeformation(RadarMonitoringDeformation radarMonitoringDeformation)
    {
        radarMonitoringDeformation.setUpdateTime(DateUtils.getNowDate());
        return radarMonitoringDeformationMapper.updateRadarMonitoringDeformation(radarMonitoringDeformation);
    }

    /**
     * 批量删除形变图
     * 
     * @param atTimes 需要删除的形变图主键
     * @return 结果
     */
    @Override
    public int deleteRadarMonitoringDeformationByAtTimes(Date[] atTimes)
    {
        return radarMonitoringDeformationMapper.deleteRadarMonitoringDeformationByAtTimes(atTimes);
    }

    /**
     * 删除形变图信息
     * 
     * @param atTime 形变图主键
     * @return 结果
     */
    @Override
    public int deleteRadarMonitoringDeformationByAtTime(Date atTime)
    {
        return radarMonitoringDeformationMapper.deleteRadarMonitoringDeformationByAtTime(atTime);
    }
}
